// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import Router from 'vue-router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import less from 'less'
import './assets/fonts/iconfont.css'

Vue.config.productionTip = false
Vue.use(ElementUI);
Vue.use(less);

const routerPush = Router.prototype.push
Router.prototype.push = function push(location) {
return routerPush.call(this, location).catch(error=> error)
}

new Vue({
  el: '#app',
  store,
  router,
  components: { App },
  template: '<App/>'
})

